package tagsFilesClientDataBase;
import java.util.HashSet;
import java.util.Set;
/**
 * FILE of Client include fileId ,file name , and set of tags 
 * (many to many relation with Tag)
 * @author Orit and Yoav
 */

public class ClientFile {
	private long fileId;
	private String fileName = "";
	private Set<Tag> tags = new HashSet<Tag>(0);
	
	//-----------------setters && getters for Tag----------------//	
	/**
	 * get File Id
	 * @return file's id
	 */
	public long getFileId() {
		return fileId;
	}
	/**
	 * set File Id
	 * @param fileId
	 */
	public void setFileId(long fileId) {
		this.fileId = fileId;
	}
	/**
	 * get File Name
	 * @return file's name
	 */
	public String getFileName() {
		return fileName;
	}
	/**
	 * set File Name
	 * @param fileName
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	/**
	 * get Tag list
	 * @return list of tags
	 */
	public Set<Tag> getTags() {
		return tags;
	}
	/**
	 * set Tag list
	 * @param tags
	 */
	public void setTags(Set<Tag> tags) {
		this.tags = tags;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return fileName;
	}
}
